#ifndef _FIGURE_DRAW
#define _FIGURE_DRAW

#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
#include <list>
using namespace std;

class FigureDraw
{
private:
	string listObjects; //Danh sach cac doi tuong hinh hoc da duoc ve len man hinh, luu dang chuoi xml giong file svg
protected:
	string& getListObjects();//Lay danh sach kieu chuoi cac doi tuong da duoc ve, luu dang chuoi xml giong file svg
public:
	//Ham ao ve duong thang
	virtual void drawLine(int x1, int y1, int x2, int y2, string stroke, int strokeWidth) = 0;
	
	//Ham ao ve hinh chu nhat
	virtual void drawRectangle(int x, int y, int width, int height, string stroke, int strokeWidth, string fill) = 0;

	//Ham ao ve hinh ellipse
	virtual void drawEllipse(int cx, int cy, int rx, int ry, string stroke, int strokeWidth, string fill) = 0;

	//Luu vao tap tin .svg
	bool save(char* fileName);

	//Mo tap tin .svg de tiep tuc ve
	bool open(char* fileName);

	//chuyen chuoi mau sac rbg(,,) trong stroke va fill ve so nguyen de xu ly khi ve.
	int Parse(string &parseString);
};
#endif